package com.miaosha.service;

import com.miaosha.error.BusinessException;
import com.miaosha.service.model.UserModel;

/**
 * @Author: lxj
 * @Date: 2021.03.16 15:54
 * @version: 1.0
 */
public interface UserService {

    UserModel getUserById(Integer id);

    //注册
    void register(UserModel userModel) throws BusinessException;

    //校验用户登录合法性，注意传入的为加密的密码
    UserModel validateLogin(String telphone, String encrptPassword) throws BusinessException;

}
